<%@ page language="java"  import="cn.ac.iscas.bean.patent.PatentPicture, java.net.*,
cn.ac.iscas.bean.patent.Patent,cn.ac.iscas.bean.patent.State" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %> 
<% %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>  
    <title>专利详细信息</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<link rel="stylesheet" href="../../css/vip.css" type="text/css">
    <script language=JavaScript src="../../js/FoshanRen.js"></script>
    <script language=JavaScript src="../../js/calendar.js"></script>
    <script type="text/javascript" src="../../js/showNewDiv.js"></script>
    <link rel="stylesheet" type="text/css" href="../../js/extjs/resources/css/ext-all.css"/>
   <script type="text/javascript" charset="utf-8" src="../../js/extjs/adapter/ext/ext-base.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../js/extjs/ext-all.js"></script>
</head> 
  <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
  <table id="tables" width="98%" border="0" cellspacing="1" cellpadding="3" align="center">
    <tr bgcolor="6f8ac4"> 
      <td colspan="2" ><font color="#FFFFFF"><s:property value="project.projectName"/>专利详细信息：</font></td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td width="25%"> <div align="right">专利名称  ：</div></td>
      <td width="75%"><s:property value="patent.patentName"/></td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td width="25%"> <div align="right">受理号 ：</div></td>
      <td width="75%"><s:property value="patent.acceptNo"/></td>
    </tr>
     <tr bgcolor="f5f5f5"> 
      <td width="25%"> <div align="right">专利号  ：</div></td>
      <td width="75%"><s:property value="patent.patentNo"/></td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td width="25%"> <div align="right">专利人 ：</div></td>
      <td width="75%"><s:property value="patent.patentee"/></td>
    </tr>    
    <tr bgcolor="f5f5f5"> 
      <td width="25%"> <div align="right">申请日期：</div></td>
      <td width="75%"><s:date name="patent.applyDate" nice="false" format="yyyy-MM-dd"/></td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td width="25%"> <div align="right">初审合格日期：</div></td>
      <td width="75%"><s:date name="patent.primaryReviewDate" nice="false" format="yyyy-MM-dd"/></td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td width="25%"> <div align="right">实审及公布日期：</div></td>
      <td width="75%"><s:date name="patent.publicDate" nice="false" format="yyyy-MM-dd"/></td>
    </tr>
     <tr bgcolor="f5f5f5"> 
      <td width="25%"> <div align="right">发证日期：</div></td>
      <td width="75%"><s:date name="patent.certificateDate" nice="false" format="yyyy-MM-dd"/></td>
    </tr>
	<tr bgcolor="f5f5f5"> 
      <td width="25%"> <div align="right">专利所关联的项目：</div></td>
      <td width="75%"><a href='<s:url action="projectManage_detailQuery" namespace="/admin"><s:param name="project.id" value="%{patent.project.id}"></s:param></s:url>'><s:property value="patent.project.projectName"/></a></td>
    </tr>    
    <tr bgcolor="f5f5f5"> 
      <td width="25%"> <div align="right">专利状态：</div></td>
      <td width="75%"><s:property value="patent.state"/></td>
    </tr> 
    <tr bgcolor="f5f5f5"> 
      <td width="25%"> <div align="right">备注：</div></td>
      <td width="75%"><s:property value="patent.note"/></td>
    </tr> 
    <tr bgcolor="f5f5f5"> 
      <td width="25%"> <div align="right">专利相关图片：</div></td>
      <td width="75%"></td>
      </tr>
      <%Patent patent = (Patent)request.getAttribute("patent"); 
       for(PatentPicture pic:patent.getPictures())//struts2 我实在不知道在这怎么用
        {%>
       <tr bgcolor="f5f5f5"> 
      <td width="25%"></td>
       <td width="75%"><font color="#FF0000">
       <font color="#0066FF"><%=pic.getPictureName()%></font>
       <a  href="patentPictureDownload.action?realname=<%=pic.getRealName()%>&name=<%=URLEncoder.encode(pic.getPictureName())%>">下载
	</a></font></td>
       </tr> 
      <%} %>
     
  </table>
  </body>
</html>
